<%@ page pageEncoding="UTF-8"%>
<%@ include file="checklogin.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>onetitle.jsp</title>
<link rel="stylesheet" type="text/css" href="CSS/linkstyle.css" />
<link rel="stylesheet" type="text/css" href="CSS/style-1.css" />
<style type="text/css">
h2 {
	margin-top: 50px;
}

#content {
	position: absolute;
	top: 150px;
	left: 100px;
}

#footer {
	margin-top: 220px;
	margin-left: 100px;
	font-size: larger;
	font-weight: bold;
}
</style>

<script type="text/javascript">
	function OneTitleCheck() {
		//var title = document.getElementById("txt_Title");
		//var title = form1.txt_Title;
		if (form1.titlename.value == "" || form1.titlename.value == null) {
			alert("请输入一级标题！");
			return false;
		} else {
			return true;
		}

	}

	function reset() {
		var title = document.getElementById("txt_Title");
		title.value = "";
	}
</script>
</head>

<body>
	<form name="form1" action="saveFirstLevelTitle.jsp" method="post">
		<h2 align="center">一级标题发布</h2>
		<div id="content">
			<table>
				<tr>
					<td>标题名：<input type="text" id="txt_Title" name="titlename" />
					</td>
				</tr>
				<tr>
					<td align="right"><input type="submit" id="btn_Submit"
						value="确定" onClick="return OneTitleCheck()" /> &nbsp;&nbsp; <input
						type="button" id="btn_Reset" value="重置" onclick="reset()" />
					</td>
				</tr>
			</table>
		</div>
		<div id="footer">注意：发布前请认真检查输入的标题是否正确。</div>
	</form>
</body>
</html>
